throw error if badge record was not retrieved
add setType calls to form elements to eliminate moodle warnings
fix case where there is no passed  but the code is trying to check for the value of the  variable
add message key for thrown error when trying to edit a badge and the code was not retrieved
only loop through badges if there were actually some retrieved
bump build date