(1) Where, due to the absence in a magisterial district of a magistrate or for any other cause, it is not practicable to make immediate application to a magistrate for the issue of a warrant for the arrest of an offender, and the ends of justice are likely to be defeated by the delay in making such application to a magistrate, a justice of the peace may take the necessary information, and, if he or she is of the opinion that a case for so doing is made out, shall issue such warrant in the same manner as the magistrate.