Fixed php notice in RedBeanPHP module